/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
//图片链接
function anchorPic(value, row) {
    //var time = row.arrivalTime.subString(0,6);
    //var factoryCode=row.factoryCode;
    if (value != null && value != '') {
        //return "<a target='view_window' href='../../photo/"+
        //        time+"/"+factoryCode+"/'+value>"+"√"+"</a>";  //图片链接
        return "<a target='view_window' href='../common/PictureViewer.jsp?pic="
                + value + "'>" + "√" + "</a>";  //图片链接
    } else {
        return "<font color='red'>" + "×" + "</font>";
    }
}

//文件链接
function anchorFile(value, row) {
    if (value) {
        return "<a target='view_window' href='../../servlet/web/util/ProcessFile?file="
                + value + "'>" + "√" + "</a>";  
    } else {
        return "<font color='red'>" + "×" + "</font>";
    }
}

